<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: hcc
  Date: 2019/8/14
  Time: 21:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="../image/favicon.ico" type="image/ico"/>

    <title>订单查询</title>

    <!-- Bootstrap -->
    <link href="../css/bootstrapcss/bootstrap.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="../css/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="../css/vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="../css/vendors/iCheck/skins/flat/green.css" rel="stylesheet">

    <!-- bootstrap-progressbar -->
    <link href="../css/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <!-- JQVMap -->
    <link href="../css/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    <!-- bootstrap-daterangepicker -->
    <link href="../css/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="../css/build/css/custom.min.css" rel="stylesheet">

    <link href="../css/after/userquery.css" rel="stylesheet">
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet">

</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">

        <jsp:include page="left.jsp"/>

        <!-- top navigation -->
        <jsp:include page="top.jsp"/>
        <!-- /top navigation -->

        <!-- page content -->


        <div class="right_col" role="main">
            <div class="col-md-12 ">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>订单管理 <small>订单查询</small></h2>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                            </li>
                            <li><a class="close-link"><i class="fa fa-close"></i></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>

                    <div class="x_content col-md-12 column">

                        <div class="col-md-12 column">

                            <form action="../Trdif/page.do" id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                                <div class="row clearfix" style="text-align: center">

                                    <div class="form-group col-md-3 column">
                                        <label class="control-label col-md-5 col-sm-5 col-xs-12" for="login_name">交易编号: </label>
                                        <div class="col-md-7 col-sm-7 col-xs-12">
                                            <input type="text" id="login_name" name="trdNo">
                                        </div>
                                    </div>
                                    <div class="form-group col-md-3 column">
                                        <label for="first_name" class="control-label col-md-4 col-sm-4 col-xs-12">买家：</label>
                                        <div class="col-md-7 col-sm-7 col-xs-12">
                                            <input id="first_name"  type="text" name="loginname">
                                        </div>
                                    </div>
                                    <div class="form-group col-md-6 column">
                                        <label for="time" class="control-label col-md-2 col-sm-5 col-xs-12">交易时间:</label>
                                        <div id="time"class="col-md-3 col-sm-3 col-xs-12" >
                                            <input name="time1" id="" type="date" >
                                        </div>
                                        <div id="time2"class="col-md-5 col-sm-5 col-xs-12">
                                            <span>~</span>
                                            <input name="time2" type="date">
                                        </div>
                                    </div>
                                    <br>
                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            <%--<button class="btn btn-primary" type="button">取消</button>--%>
                                            <button class="btn btn-primary" type="reset">重置</button>
                                            <button type="submit" class="btn btn-success">提交</button>
                                        </div>
                                    </div>
                                </div>
                            </form>

                        </div>

                        <div class="table-responsive col-md-12">
                            <table class="table table-striped jambo_table bulk_action">
                                <thead>
                                <tr class="headings">
                                    <th class="column-title">交易编号 </th>
                                    <th class="column-title">买家 </th>
                                    <th class="column-title">交易总金额 </th>
                                    <th class="column-title">交易时间 </th>
                                    <th class="column-title">收件地址 </th>
                                    <th class="column-title">收件人 </th>
                                    <th class="column-title">联系电话 </th>
                                    <th class="column-title">详情</th>
                                    <th class="column-title no-link last"><span class="nobr">操作</span></th>
                                </tr>
                                </thead>

                                <tbody>
                                <c:forEach var="trdifList" items="${trdifList}">
                                    <tr class="odd pointer" id="tr_${trdifList.trdNo}">
                                        <td>${trdifList.trdNo}</td>
                                        <td>${trdifList.loginname} <i class="success fa fa-long-arrow-up"></i></td>
                                        <td>￥${trdifList.totalMoney}</td>
                                        <td>${trdifList.trdTime}</td>
                                        <td>${trdifList.trdLoc}</td>
                                        <td>${trdifList.receiver}</td>
                                        <td>${trdifList.phone}</td>
                                        <td>
                                            <a href="../Trdif/finddetail.do?trdNo=${trdifList.trdNo}" class="btn btn-primary btn-sm" >
                                                <span class="glyphicon glyphicon-list-alt"></span></a>
                                        </td>
                                        <td>
                                            <a href="javascript:void(0)" onclick="toUpdateorder(this,'${trdifList.trdNo}')" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#updateModal" data-backdrop="static">
                                                <span class="glyphicon glyphicon-pencil update-order"></span></a>
                                            <a href="javascript:void(0)" class="btn btn-sm btn-danger deleteorder" deleteorder="${trdifList.trdNo}">
                                                <span class="glyphicon glyphicon-trash"></span></a>
                                        </td>
                                    </tr>
                                </c:forEach>
                                </tbody>
                            </table>
                        </div>
                        <div class="col-md-12" style="text-align: center">
                            <!--分页-->
                            <span>
                            <!-- 分页栏 -->
                            <c:if test="${not trdifPage.first}">
                                <a href="../Trdif/page.do?pageNo=1">第一页</a>&nbsp;&nbsp;
                            </c:if>
                            <c:if test="${trdifPage.pageNo gt 1}">
                                <a href="../Trdif/page.do?pageNo=${trdifPage.pageNo-1}">上一页</a>&nbsp;&nbsp;
                            </c:if>
                            <c:if test="${trdifPage.pageNo lt trdifPage.totalPage}">
                                <a href="../Trdif/page.do?pageNo=${trdifPage.pageNo+1}">下一页</a>&nbsp;&nbsp;
                            </c:if>
                            <c:if test="${not trdifPage.last}">
                                <a href="../Trdif/page.do?pageNo=${trdifPage.totalPage}">最后一页</a>
                            </c:if>
                            <c:if test="${not empty trdifPage}">
                                &nbsp;&nbsp; 共${trdifPage.totalRow}条记录&nbsp;第${trdifPage.pageNo}页/共${trdifPage.totalPage}页
                            </c:if>
                            </span>
                        </div>
                    </div>
                </div>
            </div>

        </div>



        <div class="col-md-12 col-sm-12 col-xs-12"></div>


        <!-- /page content -->

        <!-- footer content -->
        <%--<footer>--%>
        <%--<div class="pull-right">--%>
        <%--Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>--%>
        <%--</div>--%>
        <%--<div class="clearfix"></div>--%>
        <%--</footer>--%>
        <!-- /footer content -->
    </div>
</div>
<!-- 修改买家信息变更的模态框 -->
<div class="modal fade" tabindex="-1" role="dialog" id="updateModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<!-- jQuery -->
<script src="../js/jquery-2.2.4.js"></script>
<!-- Bootstrap -->
<script src="../js/bootstrap.js"></script>
<!-- FastClick -->
<script src="../css/vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="../css/vendors/nprogress/nprogress.js"></script>
<!-- Chart.js -->
<script src="../css/vendors/Chart.js/dist/Chart.min.js"></script>
<!-- gauge.js -->
<script src="../css/vendors/gauge.js/dist/gauge.min.js"></script>
<!-- bootstrap-progressbar -->
<script src="../css/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
<!-- iCheck -->
<script src="../css/vendors/iCheck/icheck.min.js"></script>
<!-- Skycons -->
<script src="../css/vendors/skycons/skycons.js"></script>
<!-- Flot -->
<script src="../css/vendors/Flot/jquery.flot.js"></script>
<script src="../css/vendors/Flot/jquery.flot.pie.js"></script>
<script src="../css/vendors/Flot/jquery.flot.time.js"></script>
<script src="../css/vendors/Flot/jquery.flot.stack.js"></script>
<script src="../css/vendors/Flot/jquery.flot.resize.js"></script>
<!-- Flot plugins -->
<script src="../css/vendors/flot.orderbars/js/jquery.flot.orderBars.js"></script>
<script src="../css/vendors/flot-spline/js/jquery.flot.spline.min.js"></script>
<script src="../css/vendors/flot.curvedlines/curvedLines.js"></script>
<!-- DateJS -->
<script src="../css/vendors/DateJS/build/date.js"></script>
<!-- JQVMap -->
<script src="../css/vendors/jqvmap/dist/jquery.vmap.js"></script>
<script src="../css/vendors/jqvmap/dist/maps/jquery.vmap.world.js"></script>
<script src="../css/vendors/jqvmap/examples/js/jquery.vmap.sampledata.js"></script>
<!-- bootstrap-daterangepicker -->
<script src="../css/vendors/moment/min/moment.min.js"></script>
<script src="../css/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>

<!-- Custom Theme Scripts -->
<script src="../css/build/js/custom.min.js"></script>

<!-- Mainly scripts -->
<script src="../js/framework/metisMenu/jquery.metisMenu.js"></script>
<script src="../js/framework/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="../js/framework/inspinia.js"></script>
<script src="../js/framework/pace/pace.min.js"></script>

<!-- Sweet alert -->
<script src="../js/framework/sweetalert/sweetalert.min.js"></script>
<!-- 公共 -->
<script src="../js/after/commons.js"></script>
</body>
</html>
